package com.wang.designPattern.abstractFactory;

/**
 * @description
 * @Author wangzilong
 * @Date 2025/1/13 7:58
 */
public class FactoryProducer {
    public static AbstractFactory getFactory(String choice){
        if(choice.equalsIgnoreCase("SHAPE")){
            return new ShapeFactory();
        }else if(choice.equalsIgnoreCase("COLOR")){
            return new ColorFactory();
        }
        return null;
    }
}
